Skip to content

fix: cancel Windows sandbox on network denial#19880

Open
viyatb-oai wants to merge 1 commit intomainfrom
codex/viyatb/windows-network-denial-cancellation
Open

fix: cancel Windows sandbox on network denial#19880
viyatb-oai wants to merge 1 commit intomainfrom
codex/viyatb/windows-network-denial-cancellation

Conversation

@viyatb-oai
Copy link
Copy Markdown
Collaborator

Summary

  • Add a cancellation hook to Windows sandbox capture backends.
  • Thread ExecExpiration cancellation into Windows sandbox execution so Guardian/proxy network denials can terminate without waiting for the timeout.
  • Add Windows regression coverage that cancellation is not reported as timeout.

Testing

  • cargo test -p codex-windows-sandbox
  • cargo test -p codex-core process_exec_tool_call_respects_cancellation_token
  • just fix -p codex-windows-sandbox
  • just fix -p codex-core
  • cargo clippy -p codex-core -p codex-windows-sandbox --tests -- -D warnings

Stacked on codex/viyatb/fix-network-proxy-denials.

@viyatb-oai viyatb-oai marked this pull request as ready for review April 28, 2026 17:55
@viyatb-oai viyatb-oai requested a review from a team as a code owner April 28, 2026 17:55
Base automatically changed from codex/viyatb/fix-network-proxy-denials to main April 29, 2026 19:14
Co-authored-by: Codex <noreply@openai.com>
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/windows-network-denial-cancellation branch from 6502bbe to 0ef40f6 Compare April 29, 2026 19:46
Copy link
Copy Markdown
Collaborator

@iceweasel-oai iceweasel-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants